<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>test Injector</title>
 
  </head>
  
  <body>
   			
   		test
   			
   		<form action="testInject.action" method="post">
   			姓名：<input type="text" name="userName"/><br>
   			<input type="submit" value="提交">
   		</form>	
   			
   		<p style="color: red;">
   			<s:property value="#request.name"/>
   		</p>
  </body>
</html>
